package com.dk.service.impl;

import com.dk.pojo.CarUser;
import com.dk.mapper.CarUserMapper;
import com.dk.service.CarUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 张成涛
 * @since 2021-08-11
 */
@Service
public class CarUserServiceImpl extends ServiceImpl<CarUserMapper, CarUser> implements CarUserService {
    @Autowired
    private CarUserMapper carUserMapper;

    @Override
    public List<CarUser> selectById() {
        return carUserMapper.selectList(null);
    }

    @Override
    public void toUpdate(CarUser user) {
        carUserMapper.updateById(user);
    }
}
